<extend name="Public/base"/>
<block name="sidebar">
    <include file="sidemenu" />
</block>
<block name="body">
	<div class="main-title">
		<h2>订单详情查看--{$order.sn}</h2>
	</div>

	<div class="cf">
	<if condition="$order.status eq 1">
	<a class="btn" href='__URL__/upstatus&id={$order.id}&status=2'>发货</a>
	</if>
		<!--<a class="btn" href="{:U('add')}">新 增</a>-->
		<!--<a class="btn" href="{:U('grantlist')}">授权商家</a>-->
	</div>

	<div class="tab-wrap">
		<div class="tab-content">
				<input type="hidden" name="id" value="{$order.id}" />
				<!-- 基础 -->
				<div id="tab1" class="tab-pane in tab1 dingdan">
					<div class="form-item" style="">
						<label class="item-label2" style="text-align: center;">
							订单号：{$order.sn}
						</label>
						<br />
						<label class="item-label2">
							金额：{$order.money}
						</label>
						<br />
						<!-- <label class="item-label2">
							积分:{$order.integral}
						</label>
						<br /> -->
						<label class="item-label2">
							取货方式：{$typearr[$order['type']]}
						</label>
						<br />
						<label class="item-label2">
							姓名：{$address.name}
						</label>
						<br />
						<label class="item-label2">
							电话：{$address.mobile}
						</label>
						<br />
						<label class="item-label2">
							区域：{$address.area}
						</label>
						<br />
						<label class="item-label2">
							地址：{$address.address}
						</label>
						<if condition="$order.type eq 0">
						<else />
						<!-- <br />
						<label class="item-label2">
							门店名称：{$depot.title}
						</label>
						<br />
						<label class="item-label2">
							门店联系人：{$depot.contact}
						</label>
						<br />
						<label class="item-label2">
							联系电话：{$depot.tel}
						</label> -->
						</if>
						<br />
						<label class="item-label2">
							运费：{$order.express_money}
						</label>
						<br />
						<label class="item-label2">
							是否需要发票：{$invoicearr[$order['is_invoice']]}
						</label>
						<if condition="$order.is_invoice eq 1">
						<br />
						<label class="item-label2">
							发票抬头：{$order['invoice_head']}
						</label>
						</if>
					</div>
				</div>
		</div>
	</div>

	<div class="data-table table-striped">
		<table>
			<thead>
				<tr>
					<th class="row-selected">
						<input class="checkbox check-all" type="checkbox">
					</th>
					<th>ID</th>
					<th>商品名称</th>
                    <th>商品数量</th>
                    <th>价格</th>
					<!--
					<th>操作</th>
					-->
				</tr>
			</thead>
			<tbody>
				<notempty name="list">
				<volist name="list" id="channel">
					<tr>
						<td><input class="ids row-selected" type="checkbox" name="" id="" value="{$channel['id']}"> </td>
						<td>{$channel.id}</td>
						<td>{$channel.product.title}</td>
						<td>{$channel.product_num}</td>
                        <!-- <td>
						<?php
						$attrlist=explode(',',$channel['product_attr']);
						$attr=array();
						foreach($attrlist as $item1)
						{
							list($name,$value)=explode('=',$item1);
							$attr[]=$name.'：'.$value;
						}
						?>
						{:implode('；',$attr)}</td>-->
                        <td>{$channel.product_price}</td>
					<!--
						<td> 
							<a class="confirm ajax-get" title="删除" href="__URL__/deldetail/id/{$channel.id}">删除</a>
						</td>
						-->
					</tr>
				</volist>
				<else/>
				<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
				</notempty>
			</tbody>
		</table>
	</div>
</block>

<block name="script">
<script type="text/javascript">
    $(function() {
    	//点击排序
    	$('.list_sort').click(function(){
    		var url = $(this).attr('url');
    		var ids = $('.ids:checked');
    		var param = '';
    		if(ids.length > 0){
    			var str = new Array();
    			ids.each(function(){
    				str.push($(this).val());
    			});
    			param = str.join(',');
    		}

    		if(url != undefined && url != ''){
    			window.location.href = url + '/ids/' + param;
    		}
    	});
    });
</script>
</block>